// pages/income/income.js 我的收入
import http from "../../utils/baseApi.js";

Page({
	data: {
		hasDoctor:false,
		doctorList:[]
	},
	onLoad: function (options) {

	},
	onShow: function () {
		let that = this;
		let strMobile = wx.getStorageSync("cellphone");

		http.post("sale/my-spread",{
			strMobile:strMobile,
			strSpreadType:"doctor"
		}).then((res)=>{
			if (res.code == 2000) {
				that.setData({ doctorList:res.data.data });
				if (res.data.data.length > 0) {
					that.setData({ hasDoctor:true });
				}
			}
		});
	}
})